//
//  ARAudioPlayDefault.h
//  AriseSamePro
//
//  Created by 包日守 on 15/10/30.
//  Copyright © 2015年 Arise. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "ARCate5Model.h"
@class ARAudioPlayDefault;

static ARAudioPlayDefault *audioinstance;

@interface ARAudioPlayDefault : NSObject


@property (nonatomic) NSString *title;
@property (nonatomic) NSNumber *duration;
@property (nonatomic) NSString *author;
@property (nonatomic) BOOL isPlay;

@property (nonatomic) NSString *MusicPath;
@property (nonatomic) AVAudioPlayer * player;
@property (nonatomic) ARCate5Model *playingCate;

@property (nonatomic) NSMutableArray *arrayCates;

@property (nonatomic) NSTimer *timer;


+ (id) defaultAudioPlay;
- (ARCate5Model *)getCateModelInCacheWithPath:(NSString *) path;
- (void) addCateModel:(ARCate5Model *) cateModel;
- (void) toLastSong;
- (void) toNextSong;
- (void) pauseMusic;
- (void) startMusic;
@end
